<?php include_once 'header.php'; ?>

<style>
body{background:#000;}
body .navigator {
  border-top: 1px solid #272727;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-x: auto;
  background: #1f1f1f;
}
body .navigator a {
  float: left;
  color: #7f8287;
  width: 25%;
  text-align: center;
  font-size: 14px;
  height: 46px;
  line-height: 46px;
}
body .navigator a.active {
  background: #2d2d2d;
  color: #fff;
}
body .navigator a:active {
  background: #252525;
  color: #eee;
}
body .myorder{
    display: none;
    position: fixed;
    z-index: 10000;
    left: 25%;
    width: 25%;
    bottom: 46px;
    border: 1px solid #272727;
    background: #1f1f1f;
    height: 92px;
}
body .myorder span{
    display: block;
    height: 46px;
    line-height: 46px;
    background: #1f1f1f;
    color: #fff;
    text-align: center;
}
body .myorder span a{
    text-decoration: none;
    color:#fff;
}
.weui_cells{
    margin-top:0;
    background: none;
}
.weui_cells:after {
    border:0;
}
.weui_cells:after, .weui_cells:before{
    border:0;
}
.weui_cell{margin:6px 4px;}
.weui_cell:before{
    border:0;
}



</style>
<script>
    var wAlert = window.alert;
    window.alert = function (message) {
        try {
            var iframe = document.createElement("IFRAME");
            iframe.style.display = "none";
            iframe.setAttribute("src", 'data:text/plain,');
            document.documentElement.appendChild(iframe);
            var alertFrame = window.frames[0];
            var iwindow = alertFrame.window;
            if (iwindow == undefined) {
                iwindow = alertFrame.contentWindow;
            }
            iwindow.alert(message);
            iframe.parentNode.removeChild(iframe);
        }
        catch (exc) {
            return wAlert(message);
        }
    }
</script>
<body>

    <div class="weui_cells weui_cells_access">
        <div class="weui_cell" style="background:#1f1f1f; color:#fff">
            <div class="weui_cell_bd weui_cell_primary" >
                <p>账户余额</p>
            </div>
            <div class="weui_cell_ft" ><?php echo $user->body_balance; ?> </div>
        </div>

        <a class="weui_cell" href="/account/pay" style="background:#1f1f1f; color:#fff">
            <div class="weui_cell_bd weui_cell_primary">
                <p>我要充值</p>
            </div>
            <div class="weui_cell_ft">
            </div>
        </a>
        <a class="weui_cell" href="/account/withdraw" style="background:#1f1f1f; color:#fff">
            <div class="weui_cell_bd weui_cell_primary">
                <p>我要提现</p>
            </div>
            <div class="weui_cell_ft">
            </div>
        </a>
        <a class="weui_cell" href="/account/records" style="background:#1f1f1f; color:#fff">
            <div class="weui_cell_bd weui_cell_primary">
                <p>资金记录</p>
            </div>
            <div class="weui_cell_ft">
            </div>
        </a>
        <a class="weui_cell" href="/account/orders" style="background:#1f1f1f; color:#fff">
            <div class="weui_cell_bd weui_cell_primary">
                <p>交易记录</p>
            </div>
            <div class="weui_cell_ft">
            </div>
        </a>
        <a class="weui_cell" href="/account/inviteqrcode" style="background:#1f1f1f; color:#fff">
            <div class="weui_cell_bd weui_cell_primary">
                <p>我的推广二维码分享页面</p>
            </div>
            <div class="weui_cell_ft"></div>
        </a>
        <a class="weui_cell" href="/account/myinvites" style="background:#1f1f1f; color:#fff">
            <div class="weui_cell_bd weui_cell_primary" >
                <p>我已推广用戶</p>
            </div>
            <div class="weui_cell_ft"><?php echo $count_refers; ?> 位</div>
        </a>
        <a class="weui_cell" href="/account/myBusiness" style="background:#1f1f1f; color:#fff">
            <div class="weui_cell_bd weui_cell_primary">
                <p>我已获得佣金</p>
            </div>
            <div class="weui_cell_ft"><?php echo $count_bonus; ?> 元</div>
        </a>
    </div>




  <!--  <div class="weui_cells weui_cells_access">
        <a class="weui_cell"  href="javascript:alert('暂未开通');" style="background:#1f1f1f; color:#fff">
            <div class="weui_cell_bd weui_cell_primary">
                <p>我的推广二维码分享页面</p>
            </div>
            <div class="weui_cell_ft"></div>
        </a>
    </div>-->


	    <div class="navigator clearfix">
        <a class="" href="/objects" class="active">商品价格</a>
        <a class="" href="javascript:void(0)" onclick="click_myorder()">我的订单</a>
        <a class="" href="/account">我的账户</a>
        <a class="" href="/announce">公告资讯</a>
    </div>
    <div class="myorder" id="myorder">
        <span><a href="/orders/hold"> 在线订单</a></span>
        <span><a href="/orders/history">历史订单</a></span>
    </div>

    <script>
        var is_order_show = false;
        function click_myorder(){

            if(!is_order_show){

                is_order_show = true;
                $(this).attr("class","active");
                $("#myorder").show();
            }else{
                is_order_show = false;
                $(this).attr("class","");
                $("#myorder").hide();;
            }
        }

    </script>

<?php include_once 'footer.php'; ?>
